package com.scau402.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MessageQueueConfiguration {
    /**
     * 盘点结算消息队列
     */
    @Bean
    public Queue checkQueue(){
        return QueueBuilder.durable("check.queue1").withArgument("x-queue-mode","lazy").build();
    }
}
